import { ButtonProps, PopconfirmProps } from 'element-plus';
// import { Fn } from './util';

export interface IPopconfirmProps extends PopconfirmProps {
  /**
   * @description triggers when click confirm button
   */
  onConfirm: (e: MouseEvent) => void;
  /**
   * @description triggers when click cancel button
   */
  onCancel: (e: MouseEvent) => void;
}

export interface IActionItem extends ButtonProps {
  label: string;
  popconfirm: Partial<IPopconfirmProps>;
  onClick: (e: MouseEvent) => void;
}

export type ActionItem = Partial<IActionItem>;
